import { CronJob } from 'cron';
import fp from 'fastify-plugin';
import {clearTmpJob} from './clearTmp.job';
import { clearVip } from './clearVip';


export default fp(function (fastify, opts, done) {
    fastify.ready().then(res => {
        clearTmpJob.start();
        clearVip.start();
    });

    done();
});
